﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Urb.Weather.Core.Configuration;

namespace Urb.Weather.Wunderground
{
    public class WundergroundWeatherDataProviderConfiguration : IWeatherDataProviderConfiguration
    {
        public string Location { get; set; }
        public TimeSpan RefreshTimeSpan { get; set; }

        public Type ProviderType
        {
            get { return typeof(WundergroundWeatherDataProvider); }
        }

        public IWeatherDataProviderConfiguration Clone()
        {
            return new WundergroundWeatherDataProviderConfiguration()
            {
                Location = Location,
                RefreshTimeSpan = RefreshTimeSpan
            };
        }
    }
}
